<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/aui.css">
    <link rel="stylesheet" href="css/style.css">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/init.js"></script>
    <title>直推列表</title>
</head>
<body>
<header>
    <a href="share.html" class="f1 head-back"></a>
    <div class="f8">直推列表</div>
    <div class="f1"></div>
</header>
<section class="bg-gray">
    <div class="pad-3">

        <!--<div class="flex pad-t-b-3 flex-stretch">
            <input class="mar-l-5 f1 bg-white border-gray border-radius-1 pad-1-2 mar-r-2" type="search" placeholder="搜索">
            <ul class="col-3 bg-white border-gray border-radius-1 flex">
                <li class="f1 border-r-gray">
                    <img class="col-3 auto" src="img/icon1.png" alt="" >
                </li>
                <li class="f1">
                    <img class="col-5 auto" src="img/icon2.png" alt="" >
                </li>
            </ul>
        </div>-->

        <div class="right">
            <a href="javascript:location.reload()" class="inline-block border-gray pad-1-2 bg-white border-radius-1">
                <img class="" src="img/icon1.png" alt="" width="20">
            </a>

        </div>

        <ul class="awardlist line-h-2 border-gray">
            <!--<li class="border-b-gray">
                <div>
                    <p>序号</p>
                    <p>2019-07-22</p>
                </div>
                <div>
                    <p>会员编号</p>
                    <p>10.22</p>
                </div>
                <div>
                    <p>注册日期</p>
                    <p>2.11</p>
                </div>
            </li>-->

        </ul>

    </div>
</section>

<script src="js/foot.js"></script>
<script>
    var data;
    new AjaxRequest({
        type: 'post',
        dataType: 'json',
        url: hostUrl + 'index/User/userlist',
        data: data,
        callback: res => {
            if(res.status == 1){
                var list = '';
                for (var i=0;i<res.data.length;i++){
                    list += '<li class="border-b-gray"><div><p>序号</p><p>'+res.data[i].id+'</p></div><div><p>会员编号</p><p>'+(res.data[i].account?res.data[i].account:'')+'</p></div><div><p>注册日期</p><p>'+res.data[i].creattime+'</p></div></li>';

                }
                $(".awardlist").html(list);
            }
        }
    })
</script>
</body>
</html>